package com.rc.util;

import android.content.Context;
import android.os.Handler;
import android.os.Message;

import com.rc.activity.R;

public class HandlerNetwork extends Handler {
	Context ct;

	public HandlerNetwork(Context ct) {
		super();
		this.ct = ct;
	}

	@Override
	public String getMessageName(Message message) {
		int what = message.what;
		switch (what) {
		case Const.TYPE_MOBILE:
			return ct.getString(R.string.mobile_data_enabled);
		case Const.TYPE_WIFI:
			return ct.getString(R.string.wifi_enabled);
		case Const.TYPE_NOT_CONNECTED:
			return ct.getString(R.string.not_connected_to_internet);
		default:
			return "";
		}
	}

}
